﻿namespace Toybox.NicoSharp
{
	/// <summary>
	/// NicoNicoのURLクラス
	/// </summary>
	public static class NicoUrls
	{

		#region App

		public const string AppTop = @"http://app.nicovideo.jp/";

		public static readonly string AppApi = AppTop.Replace("app", "app-cliapi");

		#endregion App

		#region Live

		/// <summary>
		/// ニコ生トップ
		/// </summary>
		public const string LiveTop = @"http://live.nicovideo.jp/";

		/// <summary>
		/// ニコ生API
		/// </summary>
		public static readonly string LiveApi = LiveTop + @"api/";

		/// <summary>
		/// ニコ生視聴API
		/// </summary>
		public static readonly string WatchLiveApi = LiveApi.Replace("live", "watch.live");

		/// <summary>
		/// ニコ生外部API
		/// </summary>
		public static readonly string ExtLiveApi = LiveApi.Replace("live", "ext.live");

		#endregion Live

		#region News

		public const string NewsTop = @"http://news.nicovideo.jp/";

		public const string InfoTop = @"http://info.nicovideo.jp/";

		#endregion News

		#region Seiga

		/// <summary>
		/// 静画トップ
		/// </summary>
		public const string SeigaTop = @"http://seiga.nicovideo.jp/";

		/// <summary>
		/// APIトップ
		/// </summary>
		public static readonly string SeigaApi = SeigaTop + "api/";


		/// <summary>
		/// Lohas静画トップ
		/// </summary>
		public static readonly string LohasTop = SeigaTop.Replace("seiga", "lohas");


		/// <summary>
		/// BookAPI
		/// </summary>
		public static readonly string BookApi = SeigaTop.Replace("seiga", "bkapi.seiga");

		#endregion Seiga

		#region Video

		/// <summary>
		/// ニコニコ動画トップ
		/// </summary>
		public const string VideoTop = @"http://www.nicovideo.jp/";

		/// <summary>
		/// ニコニコ動画API
		/// </summary>
		public static readonly string FlApi = VideoTop.Replace("www", "flapi") + "api/";

		/// <summary>
		/// ニコニコ動画API
		/// </summary>
		public static readonly string RiApi = VideoTop.Replace("www", "riapi") + "api/";

		#endregion Video
		
	}
}
